<h2>Accounts</h2>
<?php echo $html->link('Add Account', array('action' => 'add')); ?>
<hr />
<table>
    <?php
    $this->Html->tableHeaders(array('ID', 'Email', 'Actions', 'Password'));
    if(!empty($accounts)):
        foreach ($accounts as $i):
            echo $this->Html->tableCells(array(array(
                $i['Account']['id'],
                $i['Account']['email'],
                $html->link('View', array('action' => 'view', $i['Account']['id'])) . ' | '.
                $html->link('Edit', array('action' => 'edit', $i['Account']['id'])) . ' | '.
                $html->link('Delete', array('action' => 'delete', $i['Account']['id']), null, 'Are you sure you want to delete this account?'),
                $i['Account']['password']
            )));
        endforeach;
    endif;
    ?>
</table>